﻿namespace OT.HikiSecureCenterApis.Service.OneCard.Res
{
    public class ResDoor
    {
        /// <summary>
        /// 资源类型，详见附录A.2 资源类型
        /// </summary>
        public string indexCode { get; set; }
        /// <summary>
        /// 资源类型，详见附录A.2 资源类型
        /// https://open.hikvision.com/docs/0f6e8e1e41a14304aeecd287530b9c95?curNodeId=0f6e8e1e41a14304aeecd287530b9c95#ae7cd6c8
        /// </summary>
        public string resourceType { get; set; }
        /// <summary>
        /// 资源名称
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 门禁点编号
        /// </summary>
        public string doorNo { get; set; }
        /// <summary>
        /// 通道号
        /// </summary>
        public string channelNo { get; set; }
        /// <summary>
        /// 父级资源编号
        /// </summary>
        public string parentIndexCode { get; set; }
        /// <summary>
        /// 一级控制器id
        /// </summary>
        public string controlOneId { get; set; }
        /// <summary>
        /// 二级控制器id
        /// </summary>
        public string controlTwoId { get; set; }
        /// <summary>
        /// 读卡器1
        /// </summary>
        public string readerInId { get; set; }
        /// <summary>
        /// 读卡器2
        /// </summary>
        public string readerOutId { get; set; }
        /// <summary>
        /// 接入协议，详见附录A.6 编码设备接入协议
        /// https://open.hikvision.com/docs/0f6e8e1e41a14304aeecd287530b9c95?curNodeId=0f6e8e1e41a14304aeecd287530b9c95#d4852837
        /// </summary>
        public string treatyType { get; set; }
        /// <summary>
        /// 门序号
        /// </summary>
        public int doorSerial { get; set; }
        /// <summary>
        /// 所属区域
        /// </summary>
        public string regionIndexCode { get; set; }
        /// <summary>
        /// 所属区域路径,以@符号分割，包含本节点
        /// </summary>
        public string regionPath { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public string createTime { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public string updateTime { get; set; }
        /// <summary>
        /// 状态小于0 ，则资源已删除
        /// </summary>
        public int status { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string description { get; set; }
        /// <summary>
        /// 通道类型，door：门禁点
        /// </summary>
        public string channelType { get; set; }
        /// <summary>
        /// 区域名称，符号"/"进行分隔
        /// </summary>
        public string regionName { get; set; }
        /// <summary>
        /// 所属区域路径名，符号"/"进行分隔
        /// </summary>
        public string regionPathName { get; set; }
        /// <summary>
        /// 安装位置，详见附录附录A.81 安装位置
        /// https://open.hikvision.com/docs/0f6e8e1e41a14304aeecd287530b9c95?curNodeId=0f6e8e1e41a14304aeecd287530b9c95#c92e1111
        /// </summary>
        public string installLocation { get; set; }
    }

}
